package com.example.design.factory.version3;

public class TestSender {
    public static void main(String[] args) {
        Factory factory=new Factory();
        Sender sender= factory.QQpro();
        sender.send();

        Sender sender1= factory.WXpro();
        sender1.send();

        Sender  sender2=factory.QQpro();
        Sender sender3=factory.QQpro();
        sender2.send();
        sender3.send();
        System.out.println(sender2==sender3);
    }
}
